<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : notice_view.jsp
    Description : 뉴스/공지 상세
    author hiyaci
    since 2012. 7. 20.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 7. 20.     hiyaci     최초 생성
--%>

<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/com/include/doctype.jspf" %>
</head>
<body>
<%@ include file="/WEB-INF/jsp/com/include/layerpopup.jspf" %>
<div id="wrap" class="non-subnavigation">
	<%@ include file="/WEB-INF/jsp/com/include/navi_utill_sub.jspf" %>
	<%@ include file="/WEB-INF/jsp/com/include/navi_header.jspf" %>
	<hr />

	<%@ include file="/WEB-INF/jsp/com/include/sub_header_notice.jspf" %>
	<hr />
<jsp:scriptlet>
                        pageContext.setAttribute("crlf", "\r\n");
                        pageContext.setAttribute("lf", "\n");
                        pageContext.setAttribute("cr", "\r");
</jsp:scriptlet>
	<div id="container">
		<div id="subtitle-area"><div class="subtitle-area-inner">
			<%@ include file="/WEB-INF/jsp/com/include/location.jspf" %>
		</div></div>
		<div id="article">
			<div class="boardlist-wrap">
				<table summary="제목, 등록일, 조회수">
				<caption>제품뉴스 및 공지사항</caption>
				<colgroup>
					<col />
					<col width="13%" />
					<col width="10%" />
				</colgroup>
				<thead>
				<tr>
					<th scope="col">제목</th>
					<th scope="col">등록일</th>
					<th scope="col">조회수</th>
				</tr>
				</thead>
				<tbody>
				<tr>
					<td><c:if test="${result.scn eq 'NO'}">[공지]</c:if><c:if test="${result.scn eq 'NE'}">[뉴스]</c:if><c:out value="${result.titl}"/></td>
					<td class="center"><fmt:formatDate value="${result.rgstDtm}" pattern="yyyy-MM-dd" /></td>
					<td class="center"><fmt:formatNumber value="${result.iqOft}" type="number"/></td>
				</tr>
				<tr>
					<td colspan="4" class="view-area">
						<div class="view-contents02">
                            <div class="img-wrap">
                            <c:if test="${not empty result.thumnImgNm}">
                                <img src="http://pr.hyundai.com/Files/Promotion/News/PressRelease/${result.thumnImgNm}" alt="" class="thumb" />
                            </c:if>
                            <c:if test="${empty result.thumnImgNm}">
                                <c:if test="${not empty result.thumnImgPath}">
                                    <img src="/kr/file/imagePathView.do?nrFilNm=${result.thumnImgPath}" alt="" class="thumb" />
                                </c:if>
                            </c:if>
                            </div>

                            <c:if test="${result.rgn ne 'EAIADMIN'}">
                                 ${fn:replace(result.sbc, lf, "<br/>")}
                            </c:if>
                            <c:if test="${result.rgn eq 'EAIADMIN'}">
                                <c:if test="${not empty result.updr}">
                                    <c:set value="${fnc:checkHtmlView(result.sbc)}" var="test"/>
                                   ${fn:replace(test, lf, "<br/>")}
                                </c:if>
                                <c:if test="${empty result.updr}">
                                   ${result.sbc }
                                </c:if>
                            </c:if>
                            
						</div>
					</td>
				</tr>
				</tbody>
				</table>
			</div>

<!-- 			<div class="prev-next-list02">
				<table summary="이전글, 다음글">
				<caption>이전글, 다음글 목록</caption>
				<colgroup>
					<col width="15%" />
					<col />
				</colgroup>
				<tbody>
				<tr>
					<th scope="row">이전글</th>
					<td><a href="#">[뉴스] K-POP 스타 우승자, 준우승자 시상식 실시</a></td>
				</tr>
				<tr>
					<th scope="row">다음글</th>
					<td>다음글이 없습니다.</td>
				</tr>
				</tbody>
				</table>
			</div> -->
			<div class="btnwrap subsection04">
				<span class="right">
					<a href="/kr/news/selectNewsPaging.do"><img src="/kr/images/common/button/btn_list03.gif" alt="목록" /></a>
				</span>
			</div>
		</div>
	</div>
	<hr />
	<%@ include file="/WEB-INF/jsp/com/include/footer.jspf" %>